package ${bussPackage}.entity.${entityPackage};


import com.base.entity.BaseEntity;
import com.base.util.StringUtil;

/**
 * ${tableComment}
 * <pre>
 * @className : ${className}
 * @tableName : ${tableName}
 * @author : zhangxiaojin
 * </pre>
 */
public class ${className} extends BaseEntity {

	private static final long serialVersionUID = 1L;
<#list  columnList as columnEntity >
	/**  ${columnEntity.columnComment}  */
	private ${columnEntity.javaDataType} ${columnEntity.javaname};
</#list>


	public ${className} (){}


<#list  columnList as columnEntity >
<#if columnEntity.javaDataType=='String' >
	/** get ${columnEntity.columnComment} */
	public ${columnEntity.javaDataType} get${columnEntity.javaName}() {
		return  StringUtil.trim(${columnEntity.javaname});
	}
	/** set ${columnEntity.columnComment} */
	public void set${columnEntity.javaName}(${columnEntity.javaDataType} ${columnEntity.javaname}) {
		this.${columnEntity.javaname} = StringUtil.trim(${columnEntity.javaname});
	}
<#elseif  columnEntity.javaDataType!='String' >
	/** get ${columnEntity.columnComment} */
	public ${columnEntity.javaDataType} get${columnEntity.javaName}() {
		return ${columnEntity.javaname};
	}
	/** set ${columnEntity.columnComment} */
	public void set${columnEntity.javaName}(${columnEntity.javaDataType} ${columnEntity.javaname}) {
		this.${columnEntity.javaname} = ${columnEntity.javaname};
	}
</#if>

</#list>


	public String toString() {
		return "${className}[<#list columnList as columnEntity><#if columnEntity_index!=0>",</#if> ${columnEntity.javaname}=" + ${columnEntity.javaname} + </#list>"]";
	}


}